<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let obj = {
      name: "小啊giao",
      getSum: function (x, y) {
        return x + y
      },
      dance: function () {           // 数据行为性的信息称为方法，如跑步、唱歌等，一般是动词性的，其本质是函数。
        return "我会跳舞"
      },
      sayHi: function () {
        return "你好"
      }
    }
    console.log(obj.dance());
    // console.log(obj);
    console.log(obj.sayHi());
  </script>
</body>

</html>